package com.segersten.othello.service.akka.game;

import com.segersten.othello.service.akka.GameObjectPool;

import akka.actor.Actor;
import akka.actor.ActorRef;
import akka.actor.UntypedActorFactory;

public class OthelloBoardServiceActorFactory implements UntypedActorFactory {
	
	private static final long serialVersionUID = 1L;
	private String reference;
	private GameObjectPool gameObjectPool;
	
	public OthelloBoardServiceActorFactory(GameObjectPool gameObjectPool, String reference) {
		this.reference = reference;
		this.gameObjectPool = gameObjectPool;
	}

	@Override
	public Actor create() {
		return new OthelloBoardServiceActor(gameObjectPool, reference);
	}
}
